package com.fw.system.admin.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户收货信息地址表
 * </p>
 *
 * @author ${author}
 * @since 2023-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TbAddress对象", description="用户收货信息地址表")
public class TbAddress extends Model<TbAddress> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "收货地址简称")
    @TableField("addr_name")
    private String addrName;

    @ApiModelProperty(value = "收货地址详情")
    @TableField("addr_detail")
    private String addrDetail;

    @ApiModelProperty(value = "收货人姓名")
    @TableField("pro_name")
    private String proName;

    @ApiModelProperty(value = "电话")
    @TableField("phone")
    private String phone;

    @TableField("create_time")
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
